import 'package:flutter_app/generated/json/base/json_convert_content.dart';
import 'package:flutter_app/bean/task_detail_entity.dart';

TaskDetailEntity $TaskDetailEntityFromJson(Map<String, dynamic> json) {
	final TaskDetailEntity taskDetailEntity = TaskDetailEntity();
	final String? taskId = jsonConvert.convert<String>(json['taskId']);
	if (taskId != null) {
		taskDetailEntity.taskId = taskId;
	}
	final String? groupId = jsonConvert.convert<String>(json['groupId']);
	if (groupId != null) {
		taskDetailEntity.groupId = groupId;
	}
	final String? taskTitle = jsonConvert.convert<String>(json['taskTitle']);
	if (taskTitle != null) {
		taskDetailEntity.taskTitle = taskTitle;
	}
	final String? startTime = jsonConvert.convert<String>(json['startTime']);
	if (startTime != null) {
		taskDetailEntity.startTime = startTime;
	}
	final String? endTime = jsonConvert.convert<String>(json['endTime']);
	if (endTime != null) {
		taskDetailEntity.endTime = endTime;
	}
	final String? taskStatus = jsonConvert.convert<String>(json['taskStatus']);
	if (taskStatus != null) {
		taskDetailEntity.taskStatus = taskStatus;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		taskDetailEntity.collectId = collectId;
	}
	final String? areaId = jsonConvert.convert<String>(json['areaId']);
	if (areaId != null) {
		taskDetailEntity.areaId = areaId;
	}
	final String? isLimit = jsonConvert.convert<String>(json['isLimit']);
	if (isLimit != null) {
		taskDetailEntity.isLimit = isLimit;
	}
	final String? writeAuth = jsonConvert.convert<String>(json['writeAuth']);
	if (writeAuth != null) {
		taskDetailEntity.writeAuth = writeAuth;
	}
	final TaskDetailCollectGroupVO? collectGroupVO = jsonConvert.convert<TaskDetailCollectGroupVO>(json['collectGroupVO']);
	if (collectGroupVO != null) {
		taskDetailEntity.collectGroupVO = collectGroupVO;
	}
	final String? memberStatus = jsonConvert.convert<String>(json['memberStatus']);
	if (memberStatus != null) {
		taskDetailEntity.memberStatus = memberStatus;
	}
	final String? memberRole = jsonConvert.convert<String>(json['memberRole']);
	if (memberRole != null) {
		taskDetailEntity.memberRole = memberRole;
	}
	final int? problemCount = jsonConvert.convert<int>(json['problemCount']);
	if (problemCount != null) {
		taskDetailEntity.problemCount = problemCount;
	}
	final List<TaskDetailOrgProblemList>? orgProblemList = jsonConvert.convertListNotNull<TaskDetailOrgProblemList>(json['orgProblemList']);
	if (orgProblemList != null) {
		taskDetailEntity.orgProblemList = orgProblemList;
	}
	return taskDetailEntity;
}

Map<String, dynamic> $TaskDetailEntityToJson(TaskDetailEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['taskId'] = entity.taskId;
	data['groupId'] = entity.groupId;
	data['taskTitle'] = entity.taskTitle;
	data['startTime'] = entity.startTime;
	data['endTime'] = entity.endTime;
	data['taskStatus'] = entity.taskStatus;
	data['collectId'] = entity.collectId;
	data['areaId'] = entity.areaId;
	data['isLimit'] = entity.isLimit;
	data['writeAuth'] = entity.writeAuth;
	data['collectGroupVO'] = entity.collectGroupVO?.toJson();
	data['memberStatus'] = entity.memberStatus;
	data['memberRole'] = entity.memberRole;
	data['problemCount'] = entity.problemCount;
	data['orgProblemList'] =  entity.orgProblemList?.map((v) => v.toJson()).toList();
	return data;
}

TaskDetailCollectGroupVO $TaskDetailCollectGroupVOFromJson(Map<String, dynamic> json) {
	final TaskDetailCollectGroupVO taskDetailCollectGroupVO = TaskDetailCollectGroupVO();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		taskDetailCollectGroupVO.id = id;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		taskDetailCollectGroupVO.collectId = collectId;
	}
	final String? areaId = jsonConvert.convert<String>(json['areaId']);
	if (areaId != null) {
		taskDetailCollectGroupVO.areaId = areaId;
	}
	final String? areaName = jsonConvert.convert<String>(json['areaName']);
	if (areaName != null) {
		taskDetailCollectGroupVO.areaName = areaName;
	}
	final String? groupName = jsonConvert.convert<String>(json['groupName']);
	if (groupName != null) {
		taskDetailCollectGroupVO.groupName = groupName;
	}
	final String? status = jsonConvert.convert<String>(json['status']);
	if (status != null) {
		taskDetailCollectGroupVO.status = status;
	}
	final String? grade = jsonConvert.convert<String>(json['grade']);
	if (grade != null) {
		taskDetailCollectGroupVO.grade = grade;
	}
	final String? problemCount = jsonConvert.convert<String>(json['problemCount']);
	if (problemCount != null) {
		taskDetailCollectGroupVO.problemCount = problemCount;
	}
	final List<TaskDetailCollectGroupVOGroupMemberVOList>? groupMemberVOList = jsonConvert.convertListNotNull<TaskDetailCollectGroupVOGroupMemberVOList>(json['groupMemberVOList']);
	if (groupMemberVOList != null) {
		taskDetailCollectGroupVO.groupMemberVOList = groupMemberVOList;
	}
	final TaskDetailCollectGroupVORouteVO? routeVO = jsonConvert.convert<TaskDetailCollectGroupVORouteVO>(json['routeVO']);
	if (routeVO != null) {
		taskDetailCollectGroupVO.routeVO = routeVO;
	}
	return taskDetailCollectGroupVO;
}

Map<String, dynamic> $TaskDetailCollectGroupVOToJson(TaskDetailCollectGroupVO entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['collectId'] = entity.collectId;
	data['areaId'] = entity.areaId;
	data['areaName'] = entity.areaName;
	data['groupName'] = entity.groupName;
	data['status'] = entity.status;
	data['grade'] = entity.grade;
	data['problemCount'] = entity.problemCount;
	data['groupMemberVOList'] =  entity.groupMemberVOList?.map((v) => v.toJson()).toList();
	data['routeVO'] = entity.routeVO?.toJson();
	return data;
}

TaskDetailCollectGroupVOGroupMemberVOList $TaskDetailCollectGroupVOGroupMemberVOListFromJson(Map<String, dynamic> json) {
	final TaskDetailCollectGroupVOGroupMemberVOList taskDetailCollectGroupVOGroupMemberVOList = TaskDetailCollectGroupVOGroupMemberVOList();
	final String? userId = jsonConvert.convert<String>(json['userId']);
	if (userId != null) {
		taskDetailCollectGroupVOGroupMemberVOList.userId = userId;
	}
	final String? userName = jsonConvert.convert<String>(json['userName']);
	if (userName != null) {
		taskDetailCollectGroupVOGroupMemberVOList.userName = userName;
	}
	final String? memberRole = jsonConvert.convert<String>(json['memberRole']);
	if (memberRole != null) {
		taskDetailCollectGroupVOGroupMemberVOList.memberRole = memberRole;
	}
	final String? writeAuth = jsonConvert.convert<String>(json['writeAuth']);
	if (writeAuth != null) {
		taskDetailCollectGroupVOGroupMemberVOList.writeAuth = writeAuth;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		taskDetailCollectGroupVOGroupMemberVOList.collectId = collectId;
	}
	final String? groupId = jsonConvert.convert<String>(json['groupId']);
	if (groupId != null) {
		taskDetailCollectGroupVOGroupMemberVOList.groupId = groupId;
	}
	final String? status = jsonConvert.convert<String>(json['status']);
	if (status != null) {
		taskDetailCollectGroupVOGroupMemberVOList.status = status;
	}
	final dynamic? updateTime = jsonConvert.convert<dynamic>(json['updateTime']);
	if (updateTime != null) {
		taskDetailCollectGroupVOGroupMemberVOList.updateTime = updateTime;
	}
	final dynamic? hm = jsonConvert.convert<dynamic>(json['hm']);
	if (hm != null) {
		taskDetailCollectGroupVOGroupMemberVOList.hm = hm;
	}
	final dynamic? userIdList = jsonConvert.convert<dynamic>(json['userIdList']);
	if (userIdList != null) {
		taskDetailCollectGroupVOGroupMemberVOList.userIdList = userIdList;
	}
	return taskDetailCollectGroupVOGroupMemberVOList;
}

Map<String, dynamic> $TaskDetailCollectGroupVOGroupMemberVOListToJson(TaskDetailCollectGroupVOGroupMemberVOList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['userId'] = entity.userId;
	data['userName'] = entity.userName;
	data['memberRole'] = entity.memberRole;
	data['writeAuth'] = entity.writeAuth;
	data['collectId'] = entity.collectId;
	data['groupId'] = entity.groupId;
	data['status'] = entity.status;
	data['updateTime'] = entity.updateTime;
	data['hm'] = entity.hm;
	data['userIdList'] = entity.userIdList;
	return data;
}

TaskDetailCollectGroupVORouteVO $TaskDetailCollectGroupVORouteVOFromJson(Map<String, dynamic> json) {
	final TaskDetailCollectGroupVORouteVO taskDetailCollectGroupVORouteVO = TaskDetailCollectGroupVORouteVO();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		taskDetailCollectGroupVORouteVO.id = id;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		taskDetailCollectGroupVORouteVO.collectId = collectId;
	}
	final String? areaName = jsonConvert.convert<String>(json['areaName']);
	if (areaName != null) {
		taskDetailCollectGroupVORouteVO.areaName = areaName;
	}
	final dynamic? orderBy = jsonConvert.convert<dynamic>(json['orderBy']);
	if (orderBy != null) {
		taskDetailCollectGroupVORouteVO.orderBy = orderBy;
	}
	final List<TaskDetailCollectGroupVORouteVOOrganVOList>? organVOList = jsonConvert.convertListNotNull<TaskDetailCollectGroupVORouteVOOrganVOList>(json['organVOList']);
	if (organVOList != null) {
		taskDetailCollectGroupVORouteVO.organVOList = organVOList;
	}
	return taskDetailCollectGroupVORouteVO;
}

Map<String, dynamic> $TaskDetailCollectGroupVORouteVOToJson(TaskDetailCollectGroupVORouteVO entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['collectId'] = entity.collectId;
	data['areaName'] = entity.areaName;
	data['orderBy'] = entity.orderBy;
	data['organVOList'] =  entity.organVOList?.map((v) => v.toJson()).toList();
	return data;
}

TaskDetailCollectGroupVORouteVOOrganVOList $TaskDetailCollectGroupVORouteVOOrganVOListFromJson(Map<String, dynamic> json) {
	final TaskDetailCollectGroupVORouteVOOrganVOList taskDetailCollectGroupVORouteVOOrganVOList = TaskDetailCollectGroupVORouteVOOrganVOList();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		taskDetailCollectGroupVORouteVOOrganVOList.id = id;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		taskDetailCollectGroupVORouteVOOrganVOList.collectId = collectId;
	}
	final String? areaId = jsonConvert.convert<String>(json['areaId']);
	if (areaId != null) {
		taskDetailCollectGroupVORouteVOOrganVOList.areaId = areaId;
	}
	final String? orgId = jsonConvert.convert<String>(json['orgId']);
	if (orgId != null) {
		taskDetailCollectGroupVORouteVOOrganVOList.orgId = orgId;
	}
	final String? orgName = jsonConvert.convert<String>(json['orgName']);
	if (orgName != null) {
		taskDetailCollectGroupVORouteVOOrganVOList.orgName = orgName;
	}
	final dynamic? orderBy = jsonConvert.convert<dynamic>(json['orderBy']);
	if (orderBy != null) {
		taskDetailCollectGroupVORouteVOOrganVOList.orderBy = orderBy;
	}
	final String? type = jsonConvert.convert<String>(json['type']);
	if (type != null) {
		taskDetailCollectGroupVORouteVOOrganVOList.type = type;
	}
	final dynamic? areaOrganList = jsonConvert.convert<dynamic>(json['areaOrganList']);
	if (areaOrganList != null) {
		taskDetailCollectGroupVORouteVOOrganVOList.areaOrganList = areaOrganList;
	}
	return taskDetailCollectGroupVORouteVOOrganVOList;
}

Map<String, dynamic> $TaskDetailCollectGroupVORouteVOOrganVOListToJson(TaskDetailCollectGroupVORouteVOOrganVOList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['collectId'] = entity.collectId;
	data['areaId'] = entity.areaId;
	data['orgId'] = entity.orgId;
	data['orgName'] = entity.orgName;
	data['orderBy'] = entity.orderBy;
	data['type'] = entity.type;
	data['areaOrganList'] = entity.areaOrganList;
	return data;
}

TaskDetailOrgProblemList $TaskDetailOrgProblemListFromJson(Map<String, dynamic> json) {
	final TaskDetailOrgProblemList taskDetailOrgProblemList = TaskDetailOrgProblemList();
	final String? orgId = jsonConvert.convert<String>(json['orgId']);
	if (orgId != null) {
		taskDetailOrgProblemList.orgId = orgId;
	}
	final String? type = jsonConvert.convert<String>(json['type']);
	if (type != null) {
		taskDetailOrgProblemList.type = type;
	}
	final String? orgName = jsonConvert.convert<String>(json['orgName']);
	if (orgName != null) {
		taskDetailOrgProblemList.orgName = orgName;
	}
	final int? problemCount = jsonConvert.convert<int>(json['problemCount']);
	if (problemCount != null) {
		taskDetailOrgProblemList.problemCount = problemCount;
	}
	final String? userIds = jsonConvert.convert<String>(json['userIds']);
	if (userIds != null) {
		taskDetailOrgProblemList.userIds = userIds;
	}
	final List<TaskDetailOrgProblemListOrganList>? organList = jsonConvert.convertListNotNull<TaskDetailOrgProblemListOrganList>(json['organList']);
	if (organList != null) {
		taskDetailOrgProblemList.organList = organList;
	}
	final List<dynamic>? userIdList = jsonConvert.convertListNotNull<dynamic>(json['userIdList']);
	if (userIdList != null) {
		taskDetailOrgProblemList.userIdList = userIdList;
	}
	return taskDetailOrgProblemList;
}

Map<String, dynamic> $TaskDetailOrgProblemListToJson(TaskDetailOrgProblemList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['orgId'] = entity.orgId;
	data['type'] = entity.type;
	data['orgName'] = entity.orgName;
	data['problemCount'] = entity.problemCount;
	data['userIds'] = entity.userIds;
	data['organList'] =  entity.organList?.map((v) => v.toJson()).toList();
	data['userIdList'] =  entity.userIdList;
	return data;
}

TaskDetailOrgProblemListOrganList $TaskDetailOrgProblemListOrganListFromJson(Map<String, dynamic> json) {
	final TaskDetailOrgProblemListOrganList taskDetailOrgProblemListOrganList = TaskDetailOrgProblemListOrganList();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		taskDetailOrgProblemListOrganList.id = id;
	}
	final String? collectId = jsonConvert.convert<String>(json['collectId']);
	if (collectId != null) {
		taskDetailOrgProblemListOrganList.collectId = collectId;
	}
	final String? areaId = jsonConvert.convert<String>(json['areaId']);
	if (areaId != null) {
		taskDetailOrgProblemListOrganList.areaId = areaId;
	}
	final String? orgId = jsonConvert.convert<String>(json['orgId']);
	if (orgId != null) {
		taskDetailOrgProblemListOrganList.orgId = orgId;
	}
	final String? orgName = jsonConvert.convert<String>(json['orgName']);
	if (orgName != null) {
		taskDetailOrgProblemListOrganList.orgName = orgName;
	}
	final dynamic? orderBy = jsonConvert.convert<dynamic>(json['orderBy']);
	if (orderBy != null) {
		taskDetailOrgProblemListOrganList.orderBy = orderBy;
	}
	final String? type = jsonConvert.convert<String>(json['type']);
	if (type != null) {
		taskDetailOrgProblemListOrganList.type = type;
	}
	final int? problemCount = jsonConvert.convert<int>(json['problemCount']);
	if (problemCount != null) {
		taskDetailOrgProblemListOrganList.problemCount = problemCount;
	}
	final dynamic? areaOrganList = jsonConvert.convert<dynamic>(json['areaOrganList']);
	if (areaOrganList != null) {
		taskDetailOrgProblemListOrganList.areaOrganList = areaOrganList;
	}
	return taskDetailOrgProblemListOrganList;
}

Map<String, dynamic> $TaskDetailOrgProblemListOrganListToJson(TaskDetailOrgProblemListOrganList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['collectId'] = entity.collectId;
	data['areaId'] = entity.areaId;
	data['orgId'] = entity.orgId;
	data['orgName'] = entity.orgName;
	data['orderBy'] = entity.orderBy;
	data['type'] = entity.type;
	data['problemCount'] = entity.problemCount;
	data['areaOrganList'] = entity.areaOrganList;
	return data;
}